﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo
{
    [NHibernateEntity(Table = "Contacts", Lazy = true)]
    public class Contact : ITrackable, ILegacy
    {
        public Contact() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [Property]
        public virtual string Name { get; set; }

        [Property]
        public virtual string Code { get; set; }

        [Property]
        public virtual string Phone { get; set; }

        [Property]
        public virtual string Phone2 { get; set; }

        [Property]
        public virtual string Mobile { get; set; }

        [Property]
        public virtual string Fax { get; set; }

        [Property]
        public virtual string Mail { get; set; }


        [Property]
        public virtual string Description { get; set; }

        
        [Property]
        public virtual string LegacyApplication { get; set; }

        [Property]
        public virtual string LegacyID { get; set; }


        [Property]
        public virtual DateTime InsertDate { get; set; }

        [Property]
        public virtual string InsertBy { get; set; }

        [Property]
        public virtual DateTime? ModifiedDate { get; set; }

        [Property]
        public virtual string ModifiedBy { get; set; }

        [Property]
        public virtual DateTime LastContactedDate { get; set; }
    }
}
